﻿<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="WowVoiceBox.OptionsWindow"
    Title="WowVoiceBox Options" Height="395" Width="482" mc:Ignorable="d">
    <Grid>
        <TabControl Margin="0,0,0,45">
            <TabItem Header="General" >
            	<Grid>
            		<ListBox HorizontalAlignment="Left" Margin="8,40,0,0" x:Name="lbWindowNames" Width="158" Height="100.04" VerticalAlignment="Top"/>
            		<Label Height="28" HorizontalAlignment="Left" Margin="8,8,0,0" x:Name="label1" VerticalAlignment="Top" Width="158" Content="WoW Window Names:"/>
            		<Button x:Name="btnAddWindowName" HorizontalAlignment="Left" Margin="8,144.04,0,0" Width="65" Content="Add ..." VerticalAlignment="Top" Click="btnAddWindowName_Click"/>
            		<Button x:Name="btnDeleteWindowName" HorizontalAlignment="Left" Margin="101,144.04,0,112" Width="65" Content="Delete" VerticalAlignment="Top" Click="btnDeleteWindowName_Click"/>
            	</Grid>
            </TabItem>
            <TabItem Header="Commands" >
            	<Grid>
            		<ListBox HorizontalAlignment="Left" Margin="9,36,0,41" x:Name="lbCommandList" Width="120" SelectionChanged="lbCommandList_SelectionChanged" />
            		<Label Height="28" HorizontalAlignment="Left" Margin="9,9,0,0" x:Name="lblCommandList" VerticalAlignment="Top" Width="120" Content="Command List:"/>
            		<Button Height="23" HorizontalAlignment="Right" Margin="0,0,331,10" x:Name="btnDelete" VerticalAlignment="Bottom" Width="55" Click="btnDelete_Click" Content="Delete"/>
            		<Button Height="23" HorizontalAlignment="Left" Margin="9,0,0,10" x:Name="btnAdd" VerticalAlignment="Bottom" Width="55                     " Click="btnAdd_Click" Content="Add"/>
            		<GroupBox Header="Command Details" Margin="160,19,20,10" x:Name="gbCommandDetails">
            			<Grid  x:Name="grid1">
            				<RadioButton Height="16" Margin="39,31,109,0" x:Name="rbMacro" VerticalAlignment="Top" Checked="rbMacro_Checked" ToolTip="A Macro comand allows a string of characters to be entered simultaneously into the game.\nMacro commands can also accecpt dictation." Content="Macro"/>
            				<RadioButton Height="16" Margin="39,50,109,0" x:Name="rbSingleKey" VerticalAlignment="Top" Checked="rbSingleKey_Checked" ToolTip="A Single Key command simulates the press of a single key.\nThat key can optionally have the Ctrl, Alt and Shift modifiers applied to it." Content="Single Key"/>
            				<Label Height="28" Margin="31,8,117,0" x:Name="lblCommandType" VerticalAlignment="Top" Content="Command Type:"/>
            				<Label Margin="31,68,117,0" x:Name="lblVoiceCommand" Height="28.723" VerticalAlignment="Top" Content="Voice Command:"/>
            				<TextBox Margin="39,91,109,0" x:Name="tbVoiceCommand" Height="22.723" VerticalAlignment="Top" TextChanged="tbVoiceCommand_TextChanged" ToolTip="The Voice Command is what you will say to activate the command." />
            				<Grid Height="81" Margin="12,0,14,10" x:Name="gridMacroCommand" VerticalAlignment="Bottom">
            					<Label Margin="19,0,17,0" x:Name="lblMacroCommand" Height="29" VerticalAlignment="Top" Content="Macro Command:"/>
            					<TextBox Margin="27,28,17,30" x:Name="tbMacroCommand" TextChanged="tbMacroCommand_TextChanged" ToolTip="Enter the macro command.  You can allow for dictation by placing {0} into the macro, and it will be replaced with the dictated text." />
            				</Grid>
            				<Grid Height="81" Margin="12,0,14,10" x:Name="gridSingleKeyCommand" VerticalAlignment="Bottom" Visibility="Hidden">
            					<Label Margin="19,0,103,0" x:Name="lblKeyCommand" Height="29" VerticalAlignment="Top" Content="Single Key Command:"/>
            					<TextBox Margin="27,28,17,30" x:Name="tbSingleKeyCommand" KeyDown="tbSingleKeyCommand_KeyDown" IsReadOnly="True" ToolTip="Click in this box and then press the desired key or combination of keys." />
            				</Grid>
            				<CheckBox Height="16" Margin="39,0,109,93" x:Name="cbBroadcast" VerticalAlignment="Bottom" Checked="cbBroadcast_Checked" Content="Broadcast"/>
            			</Grid>
            		</GroupBox>
            	</Grid>
            </TabItem>
        </TabControl>
        <Button Height="23" Margin="142,0,0,8" x:Name="btnOK" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="74" Click="btnOK_Click" Content="OK" IsDefault="True" d:LayoutOverrides="HorizontalAlignment"/>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,142,8" x:Name="btnCancel" VerticalAlignment="Bottom" Width="75" Click="btnCancel_Click" Content="Cancel" IsCancel="True"/>

    </Grid>
</Window>
